package com.iqiju.guagua.redtone.video.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("视频对象VO")
public class VideoVO {


    @ApiModelProperty(required = true,notes = "数据类型（1视频  2广告）")
    private Integer type;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(required = false,notes = "视频ID（数据类型为1时有效）")
    private Long id;

    @ApiModelProperty(required = false,notes = "视频标题名称（数据类型为1时有效）")
    private String name;

    @ApiModelProperty(required = false,notes = "视频封面地址（数据类型为1时有效）")
    private String picUrl;

    @ApiModelProperty(required = false,notes = "视频地址（数据类型为1时有效）")
    private String videoUrl;



    @ApiModelProperty(required = false,notes = "广告ID（数据类型为2时有效）")
    private String adId;

    @ApiModelProperty(required = false,notes = "广告类型（1-Banner,2-视频广告）（数据类型为2时有效）")
    private Integer adType;

}
